﻿namespace ConsoleApp1
{
    internal class MyController
    {
        private readonly MyLogI myLog;
        private readonly MyStorageI myStorage;

        public MyController(MyLogI myLog, MyStorageI myStorage)
        {
            this.myLog = myLog;
            this.myStorage = myStorage;
        }

        public void Test()
        {
            myLog.Log("开始上传");
            myStorage.save("asdhoiuahodasoihd", "1.Txt");
            myLog.Log("上传结束");
        }
    }
}